package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/*
 * Author: xzy
 * Date: 2025/10/15
 * Last Modified by: xzy
 * Last Modified date: 2025/10/15
 * Description: TODO - Add file description here
 */
public class UploadedFile implements Serializable {
    private Integer id;
    private String originalName;
    private String savedName;
    private Long fileSize;
    private String contentType;
    private Timestamp uploadTime;
    private String uploadPath;
    private int examId;

    @Override
    public String toString() {
        return "UploadedFile{" +
                "id=" + id +
                ", originalName='" + originalName + '\'' +
                ", savedName='" + savedName + '\'' +
                ", fileSize=" + fileSize +
                ", contentType='" + contentType + '\'' +
                ", uploadTime=" + uploadTime +
                ", uploadPath='" + uploadPath + '\'' +
                ", examId=" + examId +
                '}';
    }

    public String getSavedName() {
        return savedName;
    }

    public void setSavedName(String savedName) {
        this.savedName = savedName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Timestamp getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Timestamp uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public UploadedFile() {
    }

    public UploadedFile(Integer id, String originalName, String savedName, Long fileSize, String contentType, Timestamp uploadTime, String uploadPath, int examId) {
        this.id = id;
        this.originalName = originalName;
        this.savedName = savedName;
        this.fileSize = fileSize;
        this.contentType = contentType;
        this.uploadTime = uploadTime;
        this.uploadPath = uploadPath;
        this.examId = examId;
    }
}
